Skip to content

Conversation

@hvdijk
Copy link
Contributor

@hvdijk hvdijk commented Sep 22, 2025

In multiple places, we take a reference to an element in LoopMasks and expect that reference to remain valid. LoopMasks is a DenseMap which does not promise that references to existing elements remain valid as new elements are inserted. We pre-populate LoopMasks to try and avoid this becoming a problem, but we were pre-populating it only with top-level loops, when sub-loops may also cause references to become invalid. Adjust the pre-population to take all loops into account.

In multiple places, we take a reference to an element in LoopMasks and
expect that reference to remain valid. LoopMasks is a DenseMap which does
not promise that references to existing elements remain valid as new
elements are inserted. We pre-populate LoopMasks to try and avoid this
becoming a problem, but we were pre-populating it only with top-level
loops, when sub-loops may also cause references to become invalid. Adjust
the pre-population to take all loops into account.
@hvdijk hvdijk requested a review from a team as a code owner September 22, 2025 09:33
@hvdijk
Copy link
Contributor Author

hvdijk commented Sep 22, 2025

This does not have its own test, but fixes two tests that @coldav is seeing fail in #19961.

@hvdijk
Copy link
Contributor Author

hvdijk commented Sep 22, 2025

@intel/llvm-gatekeepers This is ready to be merged, thanks.

@dm-vodopyanov dm-vodopyanov merged commit 1a95815 into intel:sycl Sep 22, 2025
59 of 61 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants